package org.zstack.header.network.l2;

import org.zstack.header.message.APIEvent;
/**
 *@apiResult
 *
 * api event for :ref:`APICreateL2NetworkMsg`
 *
 *@category l2Network
 *
 *@since 0.1.0
 *
 *@example
 *
 * {
"org.zstack.header.network.l2.APICreateL2NetworkMsg": {
"name": "TestL2Network",
"description": "Test",
"zoneUuid": "48c5febd96024e33809cc98035d79277",
"physicalInterface": "eth0",
"type": "L2NoVlanNetwork",
"session": {
"uuid": "d93f354c4339450e8c2a4c31de89da15"
},
"timeout": 1800000,
"id": "7b58a8e291e54d41bc3fe643bb1c76b4",
"serviceId": "api.portal"
}
}
 */

public class APICreateL2NetworkEvent extends APIEvent {
    /**
     * @desc see :ref:`L2NetworkInventory`
     */
    private L2NetworkInventory inventory;
    
    public APICreateL2NetworkEvent() {
        super(null);
    }
    
    public APICreateL2NetworkEvent(String apiId) {
        super(apiId);
    }

    public L2NetworkInventory getInventory() {
        return inventory;
    }

    public void setInventory(L2NetworkInventory inventory) {
        this.inventory = inventory;
    }
}
